DataConnector | ComponentOne
C1.AdoNet.D365S Assembly / C1.DataConnector.AdoNet Namespace / DbCommandWrap<TInnerConnection,TInnerCommand,TInnerParameter> Class / ExecuteScalarAsync Method / ExecuteScalarAsync(CancellationToken) Method
The token to monitor for cancellation requests.

In This Topic
    ExecuteScalarAsync(CancellationToken) Method
    In This Topic
    An asynchronous version of ExecuteScalar, which executes the query and returns the first column of the first row in the result set returned by the query. All other columns and rows are ignored. Invokes ExecuteScalarAsync(CancellationToken) with System.Threading.CancellationToken.None.
    Syntax
    'Declaration
     
    Public Overloads Overrides Function ExecuteScalarAsync( _
       ByVal cancellationToken As CancellationToken _
    ) As Task(Of Object)
    public override Task<object> ExecuteScalarAsync( 
       CancellationToken cancellationToken
    )

    Parameters

    cancellationToken
    The token to monitor for cancellation requests.
    See Also